package org.eiahe.hr.performance.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.performance.domain.PerformanceScoreDetail;

import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 绩效评分明细业务对象
 *
 * @author zhangnn
 */
@Data
@AutoMapper(target = PerformanceScoreDetail.class, reverseConvertGenerate = false)
public class PerformanceScoreDetailBo {

    /**
     * 明细ID
     */
    private Long detailId;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 结果ID
     */
    private Long resultId;

    /**
     * 评分ID
     */
    @NotNull(message = "评分ID不能为空")
    private Long scoreId;

    /**
     * 指标ID
     */
    @NotNull(message = "指标ID不能为空")
    private Long indicatorId;

    private String indicatorName;

    /**
     * 评分人
     */
    @NotNull(message = "评分人不能为空")
    private String scorer;

    /**
     * 得分
     */
    private BigDecimal score = BigDecimal.ZERO;

    /**
     * 权重
     */
    private BigDecimal weight;

    /**
     * 加权得分
     */
    private BigDecimal weightedScore;

    /**
     * 评分状态(0未评分 1已评分 2弃权)
     */
    private String scoreStatus = "0";

    /**
     * 删除标志(0存在 1删除)
     */
    private String delFlag;

    /**
     * 备注
     */
    private String remark;
}
